package com.pfa.test.metier;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.pfa.test.dao.IIntervenantDao;
import com.pfa.test.entities.DemandeReparation;
import com.pfa.test.entities.Intervenant;
import com.pfa.test.entities.Materiel;
import com.pfa.test.entities.Panne;

@Transactional
public class IntervenantMetierImpl implements IIntervenantMetier {

	private IIntervenantDao dao;
	
	
	
	public void setDao(IIntervenantDao dao) {
		this.dao = dao;
	}

	@Override
	public void modifierReparation(DemandeReparation dr) {
		// TODO Auto-generated method stub
		dao.modifierReparation(dr);
	}

	@Override
	public List<DemandeReparation> listReparation(Long idIntervenant) {
		// TODO Auto-generated method stub
		return dao.listReparation(idIntervenant);
	}

	@Override
	public DemandeReparation getReparation(Long idRep) {
		// TODO Auto-generated method stub
		return dao.getReparation(idRep);
	}

	@Override
	public void supprimerReparation(DemandeReparation rep) {
		// TODO Auto-generated method stub
		dao.supprimerReparation(rep);
	}

	@Override
	public Intervenant getIntervenant(String intitule) {
		// TODO Auto-generated method stub
		return dao.getIntervenant(intitule);
	}

	@Override
	public List<Materiel> listMateriel() {
		// TODO Auto-generated method stub
		return dao.listMateriel();
	}

	@Override
	public List<Panne> listPanne() {
		// TODO Auto-generated method stub
		return dao.listPanne();
	}

	@Override
	public Materiel getMaterielByType(String type) {
		// TODO Auto-generated method stub
		return dao.getMaterielByType(type);
	}

	@Override
	public Panne getPanneByType(String type) {
		// TODO Auto-generated method stub
		return dao.getPanneByType(type);
	}


}
